﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Setting.Master" AutoEventWireup="true" CodeBehind="MyAd.aspx.cs" Inherits="WebSite.UserAd.MyAd" %>
<%@ Register Assembly="BaseSet.Entity" Namespace="BaseSet.Entity.Common.Controls"
    TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>友赢网 - 个人中心 - 我的广告</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="w-780">
<h2>我的广告</h2>
<div class="mian_dpcx">
     <ul>
     <li>广告名称：<asp:TextBox ID="txtAdName" runat="server" Width="60px"></asp:TextBox></li>
       <li>广告位：
           <asp:DropDownList ID="ddlAdPosition" runat="server" Width="160px">
           <asp:ListItem Text="-请选择-" Value="-1"></asp:ListItem>
           </asp:DropDownList>
       </li>
        <li>显示：<asp:DropDownList ID="ddlFlag" runat="server"  Width="70px">
        <asp:ListItem Text="-请选择-" Value="-1"></asp:ListItem>
        <asp:ListItem Text="显示" Value="0"></asp:ListItem>
        <asp:ListItem Text="不显示" Value="9"></asp:ListItem>
        </asp:DropDownList>
            </li>
            <li>状态：<asp:DropDownList ID="ddlStatus" runat="server" Width="70px">
        <asp:ListItem Text="-请选择-" Value="-1"></asp:ListItem>
        <asp:ListItem Text="未审批" Value="0"></asp:ListItem>
        <asp:ListItem Text="审批通过" Value="1"></asp:ListItem>
        <asp:ListItem Text="审批拒绝" Value="2"></asp:ListItem>
        </asp:DropDownList>
            </li>
             <li>
                 <asp:ImageButton ID="ibSearch" runat="server" ImageUrl="../images/cx_03.jpg" 
                     onclick="ibSearch_Click" Width="50px" Height="25px"/></li>
     </ul>
     <div class="clear"></div>
     </div>
<ul class="formSet mt5">
    <asp:Repeater ID="rptAd" runat="server" 
        onitemcommand="rptAd_ItemCommand">
    <HeaderTemplate>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#cccfd1" bgcolor="#CCCFD1">
<tr align="center">
<td height="30" align="center" bgcolor="#E1E1E1" width="4%"><span class="STYLE4">序号</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="20%"><span class="STYLE4">广告名称</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="20%"><span class="STYLE4">所在广告位</span></td>

<td height="30" align="center" bgcolor="#E1E1E1" width="5%"><span class="STYLE4">展示量</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="5%"><span class="STYLE4">点击量</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="5%"><span class="STYLE4">类型</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="8%"><span class="STYLE4">是否显示</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="8%"><span class="STYLE4">状态</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="15%"><span class="STYLE4">操作</span></td>
</tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
<td height="30" align="center" bgcolor="#FFFFFF"><%# Container.ItemIndex+1%></td>
<td height="30" align="center" bgcolor="#FFFFFF"><a href="<%#Eval("LinkURL")%>" target="_blank" title="查看链接地址"><%#Eval("AdName")%></a></td>
<td height="30" align="center" bgcolor="#FFFFFF"><%#Eval("AdPositionName")%></td>

<td height="30" align="center" bgcolor="#FFFFFF"><%#Eval("ShowCount")%></td>
<td height="30" align="center" bgcolor="#FFFFFF"><%#Eval("ClickCount")%></td>
<td height="30" align="center" bgcolor="#FFFFFF"><%#Eval("adtypename")%></td>
<td height="30" align="center" bgcolor="#FFFFFF"><%#Eval("strFlag")%></td>
<td height="30" align="center" bgcolor="#FFFFFF"><%#Eval("strStatus")%></td>
<td height="30" align="center" bgcolor="#FFFFFF">
<asp:HiddenField ID="hidID" runat="server" Value='<%#Eval("ID")%>'/>
    <asp:HiddenField ID="hidFlag" runat="server" Value='<%#Eval("Flag")%>'/>
    <asp:LinkButton ID="lbShow" runat="server" CommandName="show">设为显示</asp:LinkButton>
    <asp:LinkButton ID="lbNotShow" runat="server" CommandName="notshow">设为不显示</asp:LinkButton>
    <asp:LinkButton ID="lbEdit" runat="server" CommandName="edit">修改</asp:LinkButton>
    <%--<a href="../AdImages/<%#Eval("ImageURL")%>" target="_blank">图片</a>--%>
    
</td>
</tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>
       </ul>  
       <div align="center">    
       <cc1:URLPager ID="AdUPager" runat="server" UseSpacer="False" UseFirstLast="true"
        PageSize="20" FirstText="<< 首页" LastText="尾页 >>" LinkFormatActive='<span class=Current>{1}</span>'
        CssClass="Pager" />    
        </div>                                                       
</div>
</asp:Content>
